{config_load file="$language/lang.conf" section="account"}
<div class="boxx">
<div class="b_tit5">
 <div><div><div><h3>{#heading_account#}</h3></div></div></div>
</div>
<div class="rcon1">
 <div class="rcon2">
   <div class="rcon3">
{if $error_message}
<div class="er">{$error_message}</div>
{/if}
{if $products_history}{else}
<div class="zx">
<h3>{#title_welcome#}</h3>
{#text_welcome#}
</div>
{/if}
<div class="zx">
<h3>{#title_account#}</h3>
<div class="hr"></div>
<div class="zx">
<a href="{$LINK_EDIT}">{#text_edit#}</a><br />
<a href="{$LINK_ADDRESS}">{#text_address#}</a><br />
<a href="{$LINK_PASSWORD}">{#text_password#}</a>
</div>
</div>
{if $order_content}
<div class="zx">
<h3>{#title_orders#}</h3>
<div class="hr"></div>
<a href="{$LINK_ALL}">{#text_all#}</a>
<div class="zx">
<table class="table" cellspacing="1">
              <tr>
                <th colspan="2">{#order_nr#}</th>
                <th>{#order_total#}</th>
                <th colspan="2">{#order_status#}</th>
              </tr>
            {foreach name=aussen item=order_data from=$order_content}
              <tr>
                <td>{$order_data.ORDER_ID}</td>
                <td>{$order_data.ORDER_DATE}</td>
                <td>{$order_data.ORDER_TOTAL}</td>
                <td>{$order_data.ORDER_STATUS}</td>
                <td>{$order_data.ORDER_BUTTON}</td>
              </tr>
              {/foreach}
              </table>
</div>
</div>
{/if}
<div class="zx">
<h3>{#title_notification#}</h3>
<div class="hr"></div>
<div class="zx"><a href="{$LINK_NEWSLETTER}">{#text_newsletter#}</a></div>
</div>
{if $products_history}
<div class="zx">
<h3>{#title_viewed_products#}</h3>
<div class="hr"></div>
<table class="pr" cellspacing="5">
  <tr>
  {foreach name=history_products item=products_history from=$products_history}
  {php} $col++;
  {/php}
<td>
<div class="prod">
 <div class="p1"><div><div></div></div></div>
 <div class="p2"><div><div>
 <div class="ptit"><a href="{$products_history.PRODUCTS_LINK}">{$products_history.PRODUCTS_NAME}</a></div>
 <div class="hr"></div>
 <div class="pimg" align="center">{if $products_history.PRODUCTS_IMAGE}<a href="{$products_history.PRODUCTS_LINK}"><img src="{$products_history.PRODUCTS_IMAGE}" alt="{$products_history.PRODUCTS_NAME}" title="{$products_history.PRODUCTS_NAME}" /></a>{/if}</div>
 <div class="pdesc"><div class="d">{$products_history.PRODUCTS_SHORT_DESCRIPTION}</div></div>
 <div class="pprice"><span class="r">{$products_history.PRODUCTS_BUTTON_BUY_NOW}</span>{$products_history.PRODUCTS_PRICE}</div>
 <div><a href="{$products_history.PRODUCTS_LINK}"></a><a href="{$products_history.PRODUCTS_CATEGORY_URL}">{#text_goto_cat#}</a></div>
 </div></div></div>
 <div class="p3"><div><div></div></div></div>
</div>
</td>
  {php}
  if ($col>=2) {
  $col=0;
  echo '</tr><tr>';
  }
  {/php}
  {/foreach}
  </tr>
</table>
</div>
{/if}
   </div>
 </div>
</div>
<div class="bf"><div><div></div></div></div>
</div>